<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;


class CreateRentClothOrderPraiseTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('rent_cloth_order_praise', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->integer('order_id')->comment('=rent_cloth_order.id');
            $table->integer('user_id');
            $table->timestamps();
        });
        DB::statement("ALTER TABLE `rent_cloth_order_praise` comment '晒单点赞表';");
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('rent_cloth_order_praise');
    }
}
